/**
 * @param {string} text
 * @param {string} brokenLetters
 * @return {number}
 */
 var canBeTypedWords = function(text, brokenLetters) {
    const arr = text.split(' ')
    const sset = new Set(brokenLetters.split(''))
    let ans = 0
    for(let w of arr){
        for(let ch of w){
            if(sset.has(ch)){
               ans++
               break 
            }
        }
    }
    return arr.length-ans
};